4 #ifndef _MV_CAMERA_CTRL_H_ 5 #define _MV_CAMERA_CTRL_H_ 7 #include "MvErrorDefine.h" 109 #ifndef MV_CAMCTRL_API 111 #if (defined (_WIN32) || defined(WIN64)) 112 #if defined(MV_CAMCTRL_EXPORTS) 113 #define MV_CAMCTRL_API __declspec(dllexport) 115 #define MV_CAMCTRL_API __declspec(dllimport) 122 #if defined(MV_CAMCTRL_EXPORTS) 123 #define MV_CAMCTRL_API __attribute__((visibility("default"))) 125 #define MV_CAMCTRL_API 2454 void(
__stdcall* cbException)(
unsigned int nMsgType,
void* pUser),
void* pUser);
3346 void(
__stdcall* cbEvent)(
unsigned int nExternalEventId,
void* pUser),
3442 #endif //_MV_CAMERA_CTRL_H_ 输出帧的信息
Definition: CameraParams.h:137
MV_CAMCTRL_API int __stdcall MV_CC_CreateHandleWithoutLog(OUT void **handle, IN const MV_CC_DEVICE_INFO *pstDevInfo)
创建设备句柄,不生成日志
MV_CAMCTRL_API int __stdcall MV_CC_StartRecord(IN void *handle, IN MV_CC_RECORD_PARAM *pstRecordParam)
开始录像
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceWhiteAuto(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取自动白平衡
MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取采集模式
单个节点基本属性
Definition: CameraParams.h:701
#define __stdcall
Definition: MvCameraControl.h:119
MV_CAMCTRL_API int __stdcall MV_CC_GetIntValueEx(IN void *handle, IN const char *strKey, OUT MVCC_INTVALUE_EX *pstIntValue)
获取Integer属性值
MV_CAMCTRL_API unsigned int __stdcall MV_CC_GetSDKVersion()
获取SDK版本号
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioBlue(IN void *handle, IN const unsigned int nValue)
设置白平衡 蓝
Float类型值
Definition: CameraParams.h:960
MV_CAMCTRL_API int __stdcall MV_CC_GetIntValue(IN void *handle, IN const char *strKey, OUT MVCC_INTVALUE *pIntValue)
获取Integer属性值
MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBack(void *handle, void(__stdcall *cbEvent)(unsigned int nExternalEventId, void *pUser), void *pUser)
注册事件回调(该接口已弃用,建议改用 MV_CC_RegisterEventCallBackEx() 接口)
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackForBGR(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO_EX *pstFrameInfo, void *pUser), void *pUser)
注册图像数据回调,BGR
MV_CAMCTRL_API int __stdcall MV_GIGE_GetResendMaxRetryTimes(void *handle, unsigned int *pnRetryTimes)
获取重传命令最大重发次数
MV_CAMCTRL_API int __stdcall MV_CC_GetBoolValue(IN void *handle, IN const char *strKey, OUT bool *pbValue)
获取Boolean属性值
MV_CAMCTRL_API int __stdcall MV_GIGE_SetResendMaxRetryTimes(void *handle, unsigned int nRetryTimes)
设置重传命令最大重发次数
#define MV_CAMCTRL_API
Definition: MvCameraControl.h:125
MV_CAMCTRL_API int __stdcall MV_CC_GetGain(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取增益
MV_CAMCTRL_API int __stdcall MV_CC_SetExposureTime(IN void *handle, IN const float fValue)
设置曝光时间
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioRed(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取白平衡 红
MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerSource(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取触发源
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCDA(IN void *handle, unsigned int *pnIP)
获取接收端IP地址,0xa9fe0102 表示 169.254.1.2
MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceAccessible(IN MV_CC_DEVICE_INFO *pstDevInfo, IN unsigned int nAccessMode)
设备是否可达
MV_CAMCTRL_API int __stdcall MV_CC_RegisterEventCallBackEx(void *handle, const char *strEventName, void(__stdcall *cbEvent)(MV_EVENT_OUT_INFO *pEventInfo, void *pUser), void *pUser)
注册单个事件回调,在打开设备之后调用
MV_CAMCTRL_API int __stdcall MV_CC_FeatureLoad(IN void *handle, IN const char *pFileName)
导入相机属性
图像转换结构体
Definition: CameraParams.h:280
MV_CAMCTRL_API int __stdcall MV_CC_GetFloatValue(IN void *handle, IN const char *strKey, OUT MVCC_FLOATVALUE *pstFloatValue)
获取Float属性值
节点列表
Definition: CameraParams.h:714
网络传输的相关信息
Definition: CameraParams.h:100
设备信息
Definition: CameraParams.h:78
MV_CAMCTRL_API int __stdcall MV_CC_EnumDevices(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST *pstDevList)
枚举设备
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceWhiteAuto(IN void *handle, IN const unsigned int nValue)
设置自动白平衡
MV_CAMCTRL_API int __stdcall MV_CC_EnumerateTls()
获取支持的传输层
MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeLower(IN void *handle, IN const unsigned int nValue)
设置曝光值下限
MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx2(IN void *handle, MV_SAVE_IMAGE_PARAM_EX *pSaveParam)
保存图片,支持Bmp和Jpeg.编码质量在50-99之前
枚举类型值
Definition: CameraParams.h:928
MV_CAMCTRL_API int __stdcall MV_CC_GetSaturation(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取饱和度
MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceInfo(IN void *handle, IN OUT MV_CC_DEVICE_INFO *pstDevInfo)
获取设备信息,取流之前调用
MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValue(IN void *handle, IN const char *strKey, IN unsigned int nValue)
设置Enum型属性值
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackForRGB(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO_EX *pstFrameInfo, void *pUser), void *pUser)
注册图像数据回调,RGB
MV_CAMCTRL_API int __stdcall MV_CC_SetCommandValue(IN void *handle, IN const char *strKey)
设置Command型属性值
MV_CAMCTRL_API int __stdcall MV_CC_SetIntValueEx(IN void *handle, IN const char *strKey, IN int64_t nValue)
设置Integer型属性值
MV_CAMCTRL_API int __stdcall MV_GIGE_SetIpConfig(IN void *handle, unsigned int nType)
配置IP方式
MV_CAMCTRL_API int __stdcall MV_CC_SetFloatValue(IN void *handle, IN const char *strKey, IN float fValue)
设置float型属性值
MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionMode(IN void *handle, IN const unsigned int nValue)
设置像素格式
MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerDelay(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取触发延时
MV_CAMCTRL_API bool __stdcall MV_CC_IsDeviceConnected(IN void *handle)
判断设备是否处于连接状态
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCDA(IN void *handle, unsigned int nIP)
设置接收端IP地址
MV_CAMCTRL_API int __stdcall MV_CC_ReadMemory(IN void *handle, void *pBuffer, int64_t nAddress, int64_t nLength)
读内存
MV_CAMCTRL_API int __stdcall MV_CC_StartGrabbing(IN void *handle)
开始取流
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPD(IN void *handle, IN const unsigned int nValue)
设置网络包发送间隔
MV_CAMCTRL_API int __stdcall MV_CC_InvalidateNodes(IN void *handle)
清除GenICam节点缓存
图像基本信息结构体
Definition: CameraParams.h:505
MV_CAMCTRL_API int __stdcall MV_CC_SetSaturation(IN void *handle, IN const unsigned int nValue)
设置饱和度
显示帧信息
Definition: CameraParams.h:218
MV_CAMCTRL_API int __stdcall MV_CC_GetExposureAutoMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取自动曝光模式
设备信息列表
Definition: CameraParams.h:117
MV_CAMCTRL_API int __stdcall MV_CC_GetImageForRGB(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pstFrameInfo, int nMsec)
获取一帧RGB数据,此函数为查询式获取,每次调用查询内部 缓存有无数据,有数据则获取数据,无数据返回错误码
MV_CAMCTRL_API int __stdcall MV_CC_GetGamma(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取Gamma值
MV_CAMCTRL_API int __stdcall MV_CC_GetImageInfo(IN void *handle, IN OUT MV_IMAGE_BASIC_INFO *pstInfo)
获取图像基本信息
MV_CAMCTRL_API int __stdcall MV_XML_GetNodeFeature(IN void *handle, IN MV_XML_NODE_FEATURE *pstNode, IN OUT void *pstFeature)
获得当前节点的属性
MV_CAMCTRL_API int __stdcall MV_CC_SetStringValue(IN void *handle, IN const char *strKey, IN const char *strValue)
设置String型属性值
MV_CAMCTRL_API int __stdcall MV_GIGE_SetTransmissionType(void *handle, MV_TRANSMISSION_TYPE *pstTransmissionType)
设置传输模式,可以为单播模式、组播模式等
MV_CAMCTRL_API int __stdcall MV_CC_GetHue(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取灰度
传输模式,可以为单播模式、组播模式等
Definition: CameraParams.h:650
MV_CAMCTRL_API int __stdcall MV_CC_Display(IN void *handle, void *hWnd)
显示图像,注册显示窗口,内部自动显示(与 MV_CC_GetImageBuffer() 不能同时使用)
MV_CAMCTRL_API int __stdcall MV_CC_GetUpgradeProcess(IN void *handle, unsigned int *pnProcess)
获取升级进度
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGvspTimeout(void *handle, unsigned int *pnMililsec)
获取数据包重发超时
MV_CAMCTRL_API int __stdcall MV_CC_FileAccessWrite(IN void *handle, IN MV_CC_FILE_ACCESS *pstFileAccess)
将文件写入相机
MV_CAMCTRL_API int __stdcall MV_XML_RegisterUpdateCallBack(IN void *handle, IN void(__stdcall *cbUpdate)(enum MV_XML_InterfaceType enType, void *pstFeature, MV_XML_NODES_LIST *pstNodesList, void *pUser), IN void *pUser)
注册更新回调
MV_CAMCTRL_API int __stdcall MV_CC_SetEnumValueByString(IN void *handle, IN const char *strKey, IN const char *strValue)
设置Enum型属性值
MV_CAMCTRL_API int __stdcall MV_CC_GetFrameSpecInfoAbility(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取水印信息内包含的信息类型
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPSPacketSize(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取网络包大小
MV_CAMCTRL_API int __stdcall MV_CC_GetBurstFrameCount(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取一次触发的帧数
MV_CAMCTRL_API int __stdcall MV_GIGE_SetResendTimeInterval(void *handle, unsigned int nMililsec)
设置重传包命令重传时间间隔
MV_CAMCTRL_API int __stdcall MV_GIGE_GetNetTransInfo(IN void *handle, MV_NETTRANS_INFO *pstInfo)
获取网络传输信息
MV_CAMCTRL_API int __stdcall MV_CC_GetFrameRate(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取帧率
MV_CAMCTRL_API void *__stdcall MV_CC_GetTlProxy(IN void *handle)
获取GenICam代理
MV_CAMCTRL_API int __stdcall MV_GIGE_GetResendTimeInterval(void *handle, unsigned int *pnMililsec)
获取重传包命令重传时间间隔
MV_CAMCTRL_API int __stdcall MV_CC_SetBoolValue(IN void *handle, IN const char *strKey, IN bool bValue)
设置Boolean型属性值
MV_CAMCTRL_API int __stdcall MV_CC_GetHeartBeatTimeout(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取心跳信息
MV_CAMCTRL_API int __stdcall MV_GIGE_IssueActionCommand(IN MV_ACTION_CMD_INFO *pstActionCmdInfo, OUT MV_ACTION_CMD_RESULT_LIST *pstActionCmdResults)
发出动作命令
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvspTimeout(void *handle, unsigned int nMililsec)
设置数据包重发超时
MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeUpper(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取曝光上限
MV_CAMCTRL_API int __stdcall MV_CC_SetBayerCvtQuality(IN void *handle, IN unsigned int BayerCvtQuality)
插值算法类型设置
MV_CAMCTRL_API int __stdcall MV_CC_SaveImage(IN OUT MV_SAVE_IMAGE_PARAM *pSaveParam)
保存图片(该接口已弃用,建议改用 MV_CC_SaveImageEx() 接口)
MV_CAMCTRL_API int __stdcall MV_CC_SetGainMode(IN void *handle, IN const unsigned int nValue)
设置增益模式
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBack(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO *pFrameInfo, void *pUser), void *pUser)
注册图像数据回调(该接口已弃用,建议改用 MV_CC_RegisterImageCallBackEx() 接口)
MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIpEx(IN void *handle, unsigned int nIP, unsigned int nSubNetMask, unsigned int nDefaultGateWay)
强制IP
MV_CAMCTRL_API int __stdcall MV_CC_TriggerSoftwareExecute(IN void *handle)
软触发一次(接口仅在已选择的触发源为软件触发时有效)
输出帧的信息
Definition: CameraParams.h:156
MV_CAMCTRL_API int __stdcall MV_CC_DestroyHandle(IN void *handle)
销毁设备句柄
MV_CAMCTRL_API int __stdcall MV_CC_SetBurstFrameCount(IN void *handle, IN const unsigned int nValue)
设置一次触发的帧数
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioBlue(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取白平衡 蓝
MV_CAMCTRL_API int __stdcall MV_CC_GetWidth(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像宽度
MV_CAMCTRL_API int __stdcall MV_CC_SetPixelFormat(IN void *handle, IN const unsigned int nValue)
设置像素格式
MV_CAMCTRL_API int __stdcall MV_CC_SetBrightness(IN void *handle, IN const unsigned int nValue)
设置亮度值
图片保存参数
Definition: CameraParams.h:257
显示事件信息
Definition: CameraParams.h:610
MV_CAMCTRL_API int __stdcall MV_CC_GetGammaSelector(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取Gamma类型
MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerSource(IN void *handle, IN const unsigned int nValue)
设置触发源
MV_CAMCTRL_API int __stdcall MV_XML_UpdateNodeFeature(IN void *handle, IN enum MV_XML_InterfaceType enType, IN void *pstFeature)
更新节点
MV_CAMCTRL_API int __stdcall MV_CC_SetExposureAutoMode(IN void *handle, IN const unsigned int nValue)
设置自动曝光模式
MV_CAMCTRL_API int __stdcall MV_CC_RegisterExceptionCallBack(IN void *handle, void(__stdcall *cbException)(unsigned int nMsgType, void *pUser), void *pUser)
注册异常消息回调,在打开设备之后调用
MV_CAMCTRL_API int __stdcall MV_CC_RegisterImageCallBackEx(void *handle, void(__stdcall *cbOutput)(unsigned char *pData, MV_FRAME_OUT_INFO_EX *pstFrameInfo, void *pUser), void *pUser)
注册图像数据回调
MV_CAMCTRL_API int __stdcall MV_CC_EnumDevicesEx(IN unsigned int nTLayerType, IN OUT MV_CC_DEVICE_INFO_LIST *pstDevList, IN const char *strManufacturerName)
根据厂商名字枚举设备
MV_CAMCTRL_API int __stdcall MV_CC_GetSharpness(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取锐度
动作命令返回信息列表
Definition: CameraParams.h:693
MV_CAMCTRL_API int __stdcall MV_CC_SetSDKLogPath(IN const char *strSDKLogPath)
设置SDK日志路径
MV_CAMCTRL_API int __stdcall MV_CC_GetDeviceUserID(IN void *handle, IN OUT MVCC_STRINGVALUE *pstValue)
获取设备自定义名字
MV_CAMCTRL_API int __stdcall MV_CC_SetFrameRate(IN void *handle, IN const float fValue)
设置帧率
MV_CAMCTRL_API int __stdcall MV_CC_FeatureSave(IN void *handle, IN const char *pFileName)
保存相机属性
MV_CAMCTRL_API int __stdcall MV_CC_RegisterAllEventCallBack(void *handle, void(__stdcall *cbEvent)(MV_EVENT_OUT_INFO *pEventInfo, void *pUser), void *pUser)
注册全部事件回调,在打开设备之后调用
MV_CAMCTRL_API int __stdcall MV_CC_GetAllMatchInfo(IN void *handle, IN OUT MV_ALL_MATCH_INFO *pstInfo)
获取各种类型的信息
MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrame(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO *pFrameInfo)
获取一帧图像,此函数为查询式获取,每次调用查询内部缓存有 无数据,有数据则范围数据,无数据返回错误码 (该接口已弃用,建议改用 MV_CC_GetOneFrameTimeOut() 接口)
文件存取进度
Definition: CameraParams.h:639
MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameEx(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pFrameInfo)
获取一帧trunck数据,此函数为查询式获取,每次调用查询内部 缓存有无数据,有数据则范围数据,无数据返回错误码 (该接口已弃用,建议改用 MV_CC_GetOneFrameTimeOut() 接口)
MV_CAMCTRL_API int __stdcall MV_CC_SetHue(IN void *handle, IN const unsigned int nValue)
设置灰度
MV_CAMCTRL_API int __stdcall MV_CC_SetFrameSpecInfoAbility(IN void *handle, IN const unsigned int nValue)
设置水印信息内包含的信息类型
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCSP(IN void *handle, unsigned int *pnPort)
获取发送端的端口号
MV_CAMCTRL_API int __stdcall MV_CC_GetFileAccessProgress(IN void *handle, OUT MV_CC_FILE_ACCESS_PROGRESS *pstFileAccessProgress)
获取文件存取的进度
MV_CAMCTRL_API int __stdcall MV_XML_GetRootNode(IN void *handle, IN OUT MV_XML_NODE_FEATURE *pstNode)
获取根节点
MV_CAMCTRL_API int __stdcall MV_CC_GetGainMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取增益模式
MV_CAMCTRL_API int __stdcall MV_GIGE_ForceIp(IN void *handle, unsigned int nIP)
强制IP(该接口已弃用,建议改用 MV_GIGE_ForceIpEx() 接口)
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCSP(IN void *handle, unsigned int nPort)
设置发送端的端口号
MV_CAMCTRL_API int __stdcall MV_GIGE_SetNetTransMode(IN void *handle, unsigned int nType)
设置仅使用某种模式,type: MV_NET_TRANS_x,不设置时,默认优先使用driver
MV_CAMCTRL_API int __stdcall MV_CC_SetAutoExposureTimeUpper(IN void *handle, IN const unsigned int nValue)
设置曝光值上限
文件存取
Definition: CameraParams.h:630
MV_CAMCTRL_API int __stdcall MV_CC_FileAccessRead(IN void *handle, IN MV_CC_FILE_ACCESS *pstFileAccess)
从相机读取文件
MV_CAMCTRL_API int __stdcall MV_CC_WriteMemory(IN void *handle, const void *pBuffer, int64_t nAddress, int64_t nLength)
写内存
MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetX(IN void *handle, IN const unsigned int nValue)
设置图像AOI偏移
MV_CAMCTRL_API int __stdcall MV_CC_SetHeight(IN void *handle, IN const unsigned int nValue)
设置图像高度
MV_XML_InterfaceType
每个节点对应的接口类型
Definition: CameraParams.h:565
MV_CAMCTRL_API int __stdcall MV_CC_StopRecord(IN void *handle)
停止录像
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGevSCPSPacketSize(IN void *handle, IN const unsigned int nValue)
设置网络包大小
MV_CAMCTRL_API int __stdcall MV_CC_GetHeight(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像高度
MV_CAMCTRL_API int __stdcall MV_CC_ConvertPixelType(IN void *handle, IN OUT MV_CC_PIXEL_CONVERT_PARAM *pstCvtParam)
像素格式转换
MV_CAMCTRL_API int __stdcall MV_CC_GetImageBuffer(IN void *handle, OUT MV_FRAME_OUT *pstFrame, IN unsigned int nMsec)
使用内部缓存获取一帧图片(与 MV_CC_Display() 不能同时使用)
MV_CAMCTRL_API int __stdcall MV_CC_SetGammaSelector(IN void *handle, IN const unsigned int nValue)
设置Gamma类型
MV_CAMCTRL_API int __stdcall MV_CC_SetAOIoffsetY(IN void *handle, IN const unsigned int nValue)
设置图像AOI偏移
MV_CAMCTRL_API int __stdcall MV_CC_SetWidth(IN void *handle, IN const unsigned int nValue)
设置图像宽度
MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerMode(IN void *handle, IN const unsigned int nValue)
设置触发模式
MV_CAMCTRL_API int __stdcall MV_CC_InputOneFrame(IN void *handle, IN MV_CC_INPUT_FRAME_INFO *pstInputFrameInfo)
输入录像数据
Int类型值
Definition: CameraParams.h:938
MV_CAMCTRL_API int __stdcall MV_CC_SetSharpness(IN void *handle, IN const unsigned int nValue)
设置锐度
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioGreen(IN void *handle, IN const unsigned int nValue)
设置白平衡 绿
录像参数
Definition: CameraParams.h:306
MV_CAMCTRL_API int __stdcall MV_CC_SetGamma(IN void *handle, IN const float fValue)
设置Gamma值
MV_CAMCTRL_API int __stdcall MV_CC_GetEnumValue(IN void *handle, IN const char *strKey, OUT MVCC_ENUMVALUE *pstEnumValue)
获取Enum属性值
MV_CAMCTRL_API int __stdcall MV_CC_CreateHandle(OUT void **handle, IN const MV_CC_DEVICE_INFO *pstDevInfo)
创建设备句柄
MV_CAMCTRL_API int __stdcall MV_CC_CloseDevice(IN void *handle)
关闭设备
MV_CAMCTRL_API int __stdcall MV_CC_SetImageNodeNum(IN void *handle, unsigned int nNum)
设置SDK内部图像缓存节点个数,大于等于1,在抓图前调用
MV_CAMCTRL_API int __stdcall MV_CC_GetTriggerMode(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取触发模式
String类型值
Definition: CameraParams.h:970
MV_CAMCTRL_API int __stdcall MV_CC_SetAcquisitionLineRate(IN void *handle, IN const unsigned int nValue)
设置行频
MV_CAMCTRL_API int __stdcall MV_CC_GetImageForBGR(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pstFrameInfo, int nMsec)
获取一帧BGR数据,此函数为查询式获取,每次调用查询内部 缓存有无数据,有数据则获取数据,无数据返回错误码
MV_CAMCTRL_API int __stdcall MV_CC_SetDeviceUserID(IN void *handle, IN const char *chValue)
设置设备自定义名字
MV_CAMCTRL_API int __stdcall MV_CC_GetBrightness(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取亮度值
MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetX(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像X偏移
MV_CAMCTRL_API int __stdcall MV_CC_GetBalanceRatioGreen(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取白平衡 绿
MV_CAMCTRL_API int __stdcall MV_CC_GetAOIoffsetY(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取图像Y偏移
MV_CAMCTRL_API int __stdcall MV_CC_GetPixelFormat(IN void *handle, IN OUT MVCC_ENUMVALUE *pstValue)
获取像素格式
MV_CAMCTRL_API int __stdcall MV_XML_GetGenICamXML(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, OUT unsigned int *pnDataLen)
获取相机属性树XML
MV_CAMCTRL_API int __stdcall MV_CC_GetOneFrameTimeout(IN void *handle, IN OUT unsigned char *pData, IN unsigned int nDataSize, IN OUT MV_FRAME_OUT_INFO_EX *pstFrameInfo, unsigned int nMsec)
采用超时机制获取一帧图片,SDK内部等待直到有数据时返回
MV_CAMCTRL_API int __stdcall MV_CC_StopGrabbing(IN void *handle)
停止取流
MV_CAMCTRL_API int __stdcall MV_GIGE_SetResend(void *handle, unsigned int bEnable, unsigned int nMaxResendPercent, unsigned int nResendTimeout)
设置是否打开重发包支持,及重发包设置
MV_CAMCTRL_API int __stdcall MV_CC_SetGain(IN void *handle, IN const float fValue)
设置帧率
MV_CAMCTRL_API int __stdcall MV_CC_SetIntValue(IN void *handle, IN const char *strKey, IN unsigned int nValue)
设置Integer型属性值
MV_CAMCTRL_API int __stdcall MV_CC_SetBalanceRatioRed(IN void *handle, IN const unsigned int nValue)
设置白平衡 红
MV_CAMCTRL_API int __stdcall MV_CC_GetExposureTime(IN void *handle, IN OUT MVCC_FLOATVALUE *pstValue)
获取曝光时间
图片保存参数
Definition: CameraParams.h:241
MV_CAMCTRL_API int __stdcall MV_CC_SetHeartBeatTimeout(IN void *handle, IN const unsigned int nValue)
设置心跳信息
MV_CAMCTRL_API int __stdcall MV_CC_GetStringValue(IN void *handle, IN const char *strKey, OUT MVCC_STRINGVALUE *pstStringValue)
获取String属性值
MV_CAMCTRL_API int __stdcall MV_XML_GetChildren(IN void *handle, IN MV_XML_NODE_FEATURE *pstNode, IN OUT MV_XML_NODES_LIST *pstNodesList)
从xml中获取指定节点的所有子节点,根节点为Root
MV_CAMCTRL_API int __stdcall MV_CC_GetAcquisitionLineRate(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取行频
录像数据
Definition: CameraParams.h:325
MV_CAMCTRL_API int __stdcall MV_CC_FreeImageBuffer(IN void *handle, IN MV_FRAME_OUT *pstFrame)
释放图像缓存(此接口用于释放不再使用的图像缓存,与 MV_CC_GetImageBuffer() 配套使用)
MV_CAMCTRL_API int __stdcall MV_CC_GetOptimalPacketSize(IN void *handle)
获取最佳的packet size,该接口目前只支持GigE相机
Int类型值Ex
Definition: CameraParams.h:949
MV_CAMCTRL_API int __stdcall MV_GIGE_GetGevSCPD(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取网络包发送间隔
MV_CAMCTRL_API int __stdcall MV_GIGE_SetGvcpTimeout(void *handle, unsigned int nMillisec)
设置GVCP命令超时时间
MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrame(IN void *handle, IN MV_DISPLAY_FRAME_INFO *pstDisplayInfo)
显示一帧图像
MV_CAMCTRL_API int __stdcall MV_CC_OpenDevice(IN void *handle, IN unsigned int nAccessMode, IN unsigned short nSwitchoverKey)
打开设备
MV_CAMCTRL_API int __stdcall MV_CC_SetTriggerDelay(IN void *handle, IN const float fValue)
设置触发延时
图像结构体,输出图像指针地址及图像信息
Definition: CameraParams.h:209
MV_CAMCTRL_API int __stdcall MV_CC_LocalUpgrade(IN void *handle, const void *strFilePathName)
设备本地升级
动作命令信息
Definition: CameraParams.h:660
全匹配的一种信息结构体
Definition: CameraParams.h:474
MV_CAMCTRL_API int __stdcall MV_CC_GetAutoExposureTimeLower(IN void *handle, IN OUT MVCC_INTVALUE *pstValue)
获取曝光下限
MV_CAMCTRL_API int __stdcall MV_CC_SaveImageEx(IN OUT MV_SAVE_IMAGE_PARAM_EX *pSaveParam)
保存图片,支持Bmp和Jpeg.编码质量在50-99之前 (该接口已弃用,建议改用 MV_CC_SaveImageEx2() 接口)